<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<html>
<head>

<title><sitemesh:write property='title' /></title>
<link rel="stylesheet" href="<spring:theme code="theme.default.css"/>/jNotify.jquery.css?time=@time_param@" /> 
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/form/datePicker.css?time=@time_param@" /> 
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/form/form.css?time=@time_param@" />
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/layout/jquery.fancybox-1.3.4.css?time=@time_param@" />
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/layout/niceforms-default.css?time=@time_param@" /> 
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/layout/style.css?time=@time_param@" />
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/base/jquery.ui.all.css?time=@time_param@" />
<link rel="stylesheet" href="<spring:theme code="theme.admin.css"/>/admin_style.css?time=@time_param@" />
<link rel="stylesheet" href="<spring:theme code="theme.default.css"/>/jquery-ui-1.9.2.custom.min.css?time=@time_param@" /> 

<script src="<spring:theme code="theme.default.js"/>/libs/jquery-1.8.3.js?time=@time_param@" type="text/javascript"></script>
<script type="text/javascript">
	var IMAGES_PATH = "<spring:theme code='theme.admin.images'/>";
</script>
<script src="<spring:theme code="theme.default.js"/>/libs/jquery-ui-1.9.2.custom.min.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.default.js"/>/libs/jNotify.jquery.min.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.default.js"/>/application.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/form/ui.checkbox.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/form/jquery.bind.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/form/jquery.selectbox-0.5_style_2.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/form/jquery.filestyle.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/form/date.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/form/jquery.datePicker.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/layout/ddaccordion.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/layout/jconfirmaction.jquery.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/layout/jquery.fancybox-1.3.4.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/layout/jquery.jclock-1.2.0.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/layout/niceforms.js?time=@time_param@" type="text/javascript"></script>
<script src="<spring:theme code="theme.admin.js"/>/layout/main.js?time=@time_param@" type="text/javascript"></script>
<sitemesh:write property='head' />
</head>
<c:set var="isAdmin" value="false" scope="request" />
<sec:authorize ifAnyGranted="ROLE_ADMIN">
	<c:set var="isAdmin" value="true" scope="request" />
</sec:authorize>
<c:set var="isPublisher" value="false" scope="request" />
<sec:authorize ifAnyGranted="ROLE_PUBLISHER">
	<c:set var="isPublisher" value="true" scope="request" />
</sec:authorize>
<c:set var="username" value="false" scope="request" />
<script type="text/javascript" charset="utf-8">
	$(function() {
		// initialise the "Select date" link
		$("#seDate")
				.datepicker(
						// associate the link with a date picker
						{
							showOn : 'button',
							buttonImage : '<spring:theme code="theme.admin.images"/>/calendar.gif',
							buttonImageOnly : true,
							changeMonth : true, // must be disabled when using maxDate
							changeYear : true,
						//onSelect:function(selectedDate){
						//alert("as");
						//your_function(selectedDate);
						//}
						});
		$("#datepicker").datepicker();
	});
</script>
<body>
	<div id="main_container">
		<div class="header">
			<div class="logo"><a href="#"><img src="<spring:theme code="theme.admin.images"/>/logo-full-ico.png" alt="" title="" border="0" /></a></div>
		    <div class="right_header">Welcome <sec:authentication property="principal.username"/> | <a href="logout" class="logout">Logout</a></div>
		</div>
		<div class="main_content">
			<div class="menu">
				<%-- <ul>
					<li><a class="current" href="top-book-transaction">Top 10 sách ban chạy</a></li>
					<li><a href="booktype-info">Quản lý loại sách</a>
					</li>
					<c:if test="${isPublisher}">
					<li><a href="personal-info">Thông tin cá nhân</a>
					</li>
					</c:if>
				</ul> --%>
			</div>
			<div class="center_content"> 
				<div class="left_content">
					<div class="sidebarmenu">
						<a class="menuitem submenuheader" href="">Quản lý banners</a>
						<div class="submenu">
							<ul>
								<li><a href="banner-info">Thông tin Banners</a></li>
								<li><a href="add-banner">Thêm banners</a></li>
							</ul>
						</div>	
						<div id="datepicker"></div>
					</div>
				</div> <!-- end left menu -->
				<div class="right_content">
					<sitemesh:write property='body' />
				</div><!-- end of right content-->
			</div><!--end of center content -->    
			<div class="clear"></div>
		</div><!--end of main content-->
		 <div class="footer">
	    	<div class="left_footer">Bản quyền thuộc về nhà xuất bản thời đại</div>
	    </div>
	</div>
</body>
</html>